import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Layout from '../views/layout/Layout'

export default new Router({
    routes: [{
            path: '/login',
            component: () =>
                import ('@/views/login/index'),
            hidden: true
        },
        {
            path: '/',
            component: Layout,
            redirect: '/enterBill',
        },
        {
            path: '/enterBill',
            component: Layout,
            children: [{
                path: '',
                name: '录入账单',
                component: () =>
                    import ('@/views/enterBill/index'),
            }]
        },
    ]
})